package com.example.day01;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Test;

public class ActiviTest01 {

	@Test
	public void testCreateTable() {
		ProcessEngineConfiguration config = ProcessEngineConfiguration
				.createStandaloneInMemProcessEngineConfiguration();
		// 连接数据库的配置
		config.setJdbcDriver("com.mysql.jdbc.Driver");
		config.setJdbcUrl("jdbc:mysql://localhost:3306/boot_activiti?useUnicode=true&characterEncoding=utf8");
		config.setJdbcUsername("root");
		config.setJdbcPassword("root");
		
		config.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
		//工作流的核心对象，ProcessEnginee对象
		ProcessEngine processEngine = config.buildProcessEngine();
		System.out.println("processEngine:"+processEngine);
		
		
	}

}
